﻿using PCL.Application.BaseUsers.Services;
using PLC.Interface.Authorizes;
using PLC.Interface.BaseUsers;
using System.Threading.Tasks;
using YWM;

namespace PCL.Application.Authorizes
{
    public class AuthorizeAppService : IAuthorizeAppService
    {
        private readonly IBaseUserService _baseUserService = YApp.Resolve<IBaseUserService>();

        public Task<VerificationResultDto> GetVerificationCode()
        {
            throw new System.NotImplementedException();
        }

        public Task<BaseUserResultDto> Login(LoginDto input)
        {
            return _baseUserService.GetUser(input.Username, input.Password);
        }

        public Task Logout()
        {
            throw new System.NotImplementedException();
        }
    }
}
